import request from '@/utils/request'
/**
 * @description 登录接口
 * @data {name:String,password:String}
 */
 export function login(loginInfo){
    return request({
        method:"POST",
        url:'/frontend/sso/login',
        data:loginInfo
    })
}

/**
 * @description/获取个人信息接口
 * @data {name:String,password:String}
 */
 export function getUserInfo(){
    return request({
        method:"POST",
        url:'/frontend/my/info',
        
    })
}

/**
 * @description/注册接口
 * @data {name:String,password:String,pass}
 */
 export function register(data){
    return request({
        method:"POST",
        url:'/frontend/sso/register',
        data:data
    })
}

/**
 * @description 退出登录接口
 * @data {name:String,password:String}
 */
export function logout(data){
    return request({
        method:'post',
        url:'/frontend/sso/logout',
        data:data
    })
}
export function changePassword(data){
    return request({
        method:'post',
        url:'/frontend/sso/password/update',
        data:data
    })
}